Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Vue Layout renderer reactivity and Vue HTML output #1733

Merged
merged 2 commits into from
Apr 26, 2021

Conversation

sdirix
Copy link
Member

@sdirix sdirix commented Mar 31, 2021

Refactor the composition architecture to be based on 'computed' instead
of 'ref'. This avoids manually syncing ref content and fixes
rerendering issues for the layout renderers.

Make sure that only expected props are handed over to renderers
which unconditionally bind all properties. This avoids rendering
stringified attributes like rootSchema in the HTML.

@sdirix sdirix requested a review from TheZoker March 31, 2021 08:45
@sdirix sdirix linked an issue Mar 31, 2021 that may be closed by this pull request
@sdirix
Copy link
Member Author

sdirix commented Mar 31, 2021

@TheZoker If possible add testcases for this and the remaining layout attributes.

@coveralls
Copy link

coveralls commented Mar 31, 2021

Coverage Status

Coverage remained the same at 88.495% when pulling ad7c5d9 on sdirix:fix-layout-rerender into 9b95669 on eclipsesource:master.

@sdirix sdirix force-pushed the fix-layout-rerender branch 2 times, most recently from 68010fa to b3fc58e Compare April 23, 2021 14:07
Refactor the composition architecture to be based on 'computed' instead
of 'ref'. This avoids manually syncing ref content and fixes
rerendering issues for the layout renderers.
Make sure that only expected props are handed over to renderers
which unconditionally bind all properties. This avoids rendering
stringified attributes like rootSchema in the HTML.
@sdirix sdirix changed the title Improve Vue Layout renderer reactivity Improve Vue Layout renderer reactivity and Vue HTML output Apr 23, 2021
@sdirix sdirix linked an issue Apr 23, 2021 that may be closed by this pull request
@sdirix sdirix requested review from TheZoker and removed request for TheZoker April 23, 2021 14:50
Copy link
Contributor

@TheZoker TheZoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that now all uischema changes happen instantly without the need to call the update function multiple times 👍

@sdirix sdirix merged commit 2375f36 into eclipsesource:master Apr 26, 2021
@sdirix sdirix deleted the fix-layout-rerender branch April 26, 2021 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants